package com.cwm.test.single.register;

/**
 * 执行效率高，性能高，没有任何的锁
 * 缺点：某些情况下，会造成内存浪费
 */
public enum Enumsingleton {
    INSTANCE;
    private Object data;

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public static Enumsingleton getInstance() {
        return INSTANCE;
    }
}